package com.itheima.pattern.visitor.demo;


/**
 * 静态分派，编译时分派
 */
public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Animal dog = new Dog();
        Animal cat = new Cat();

        Execute exe = new Execute();
        exe.execute(animal);
        exe.execute(dog);
        exe.execute(cat);
    }
}
